<?php defined( '_JEXEC' ) or die( 'Restricted access' );$rn=count( $this->lDesc );?>
<div id="smallQCEicon">
		<div class="strMes"><?php echo JText::_('COM_PQCE_3M'.strftime("%m",mktime(0,0,0,$this->month,1,1)));?></div>
		<div class="diaMes"><?php echo sprintf('%02s', $this->day);?></div>
</div>

<div id="smallQCEconMain">
<div id="smallQCEconMainFix">
	<?php	for ($r=0; $r < $rn; $r++)	{
			$row = &$this->lDesc[$r];$hr=sprintf('%02s', $row->hr);$min=sprintf('%02s', $row->min);$thr=sprintf('%02s', $row->thr);$tmin=sprintf('%02s', $row->tmin);$img=$row->long_desc_image;$sdi=$row->short_desc_image;$csdi=$row->cshort_image;
			$H1=($row->hr)*60+$row->min;$H2=($row->thr)*60+$row->tmin;
			$dsp=($r>0)? "hide":"show";
			echo "<div class='QCEsmallCont $dsp'><div class='smallQCEhr'>";
			echo ($H2>$H1)? "$hr:$min - $thr:$tmin" : "$hr:$min";
			echo "</div>";
			$i1=(strpos($sdi,'.')!==false)? "<img class='QCEsmallImg' src='".JURI::root().$sdi."' />" :'';
			$i2=(strpos($csdi,'.')!==false && $row->cat_act)? "<img class='QCEsmallImg' title='$row->category' src='".JURI::root().$csdi."' />" :'';
			if ($sdi || ($csdi && $row->cat_act)){
				echo "<div class='QCEevIcons'>$i2$i1</div>";
			}
			if ($row->link=='url'){ echo "<p class='QCEsd'><a href='$row->url' target='_blank'>".ucfirst($row->short_desc).'</a></p>';}else{ echo '<p class="QCEsd">'.ucfirst($row->short_desc).'</p>';}
			echo '<div class="smallQCELong">'.$row->long_desc.'</div></div>';
			if ($r<($rn-1)){
			echo '<div class="smallQCEsep"></div>';
		}
		}
	?>
</div></div>
